<ion-view class="magnifiers-view" view-title="周径测量">
    <ion-content class="magnifier-content" scroll="false">
        <div class="modal-body" style="height: 90%;">
            <div class="cycleParameter"style="display: flex;height: 100%;">
                <ion-scroll class="cycle-scroll" style="flex-grow: 2;">
                    <div class="cycleValuePart" style="flex-grow:1;font-size: 20px;">
                        <div class="row title-bar">
                            <div class="col col-30">名称</div>
                            <div class="col col-30">标准值</div>
                            <div class="col col-30">测量值</div>
                            <div class="col col-10">单位</div>
                        </div>
                        <div class="row grid-body" ng-repeat="obj in param.magnifierCycle">
                            <div class="col col-30 {{'app'+($index)}}" ng-class='{selected:$index===selectedRow}'
                            ng-click="setLocalObj(obj,$index)">{{obj.QCNormName}}</div>
                            <div class="col col-30 {{'app'+($index)}}" ng-class='{selected:$index===selectedRow}'
                            ng-click="setLocalObj(obj,$index)">
                                <span>{{obj.ValueLowerLimit}}</span>-
                                <span>{{obj.ValueUpperLimit}}</span>
                            </div>
                            <div class="col col-30 inputPart {{'app'+($index)}}"
                                 ng-class="{selected:$index===selectedRow,assertive:obj.NormValue>obj.ValueUpperLimit||obj.NormValue<obj.ValueLowerLimit}"
                                 ng-click="setLocalObj(obj,$index)">
                                {{obj.NormValue}}
                            </div>
                            <div class="col col-10 inputPart {{'app'+($index)}}"
                            ng-class='{selected:$index===selectedRow}'
                            ng-click="setLocalObj(obj,$index)">
                                {{obj.QCNormUnit}}
                            </div>
                        </div>
                    </div>
                </ion-scroll>
                <div class="cycleCalculator" style="width: 350px;">
                    <div>周径测量</div>
                    <div class="col">
                        <button class="button button-outline button-positive" ng-click="doInput(num.f);">6</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.g);">7</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.h);">8</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.i);">9</button>
                    </div>
                    <div class="col">
                        <button class="button button-outline button-positive" ng-click="doInput(num.b);">2</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.c);">3</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.d);">4</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.e);">5</button>
                    </div>
                    <div class="col">
                        <button class="button button-outline button-positive" ng-click="doInput(num.a);">1</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.j);">0</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.k);">.</button>
                        <button class="button button-outline button-positive" ng-click="doInput(num.l);">C</button>
                    </div>
                    <div class="col">
                        <button class="button button-outline button-positive" style="padding: 0px;width: 290px;"
                                ng-click="nextOne()">
                            下一项
                        </button>
                    </div>
                    <div class="col">
                        <button class="button button-outline button-positive" ng-click="cancelParam()"
                                style="width: 140px;">取消
                        </button>
                        <button class="button button-outline button-positive"
                                ng-click="saveParam('magnifierCycle')" style="width: 146px;">
                            确定
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>
